#!/bin/bash
sudo umount /mnt/1GB_USB_flash
sudo mkdir /mnt/1GB_USB_flash
sudo mount -o uid=pi,gid=pi /dev/sda1 /mnt/1GB_USB_flash
sudo python3 /home/pi/project/uart.py > /mnt/1GB_USB_flash/rtcnew.txt
sudo umount /mnt/1GB_USB_flash
#sudo rmdir /mnt/1GB_USB_flash
